/* 动画关键帧定义 */
@keyframes menuExpand {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes menuCollapse {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 208, 75, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 208, 75, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 208, 75, 0); }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffd04b, 0 0 20px #ffd04b;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ffd04b, 0 0 40px #ffd04b;
    }
}
/* 侧边栏标题容器 */
.el-aside {
    display: flex;
    flex-direction: column;
}

/* 标题基础样式 */
.el-aside strong {
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题动画效果 */
.el-aside strong {
    animation: pulseLight 3s infinite;
}

/* 光效动画 */
@keyframes pulseLight {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.7), 0 0 35px rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
}

/* 背景光效 */
.el-aside strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: slideLight 5s infinite linear;
}

@keyframes slideLight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .el-aside strong {
        font-size: 16px;
    }
}    

/* 菜单动画类 */
.menu-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 50px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 208, 75, 0.2), transparent);
    transition: all 0.6s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover,
.menu-item.active {
    background-color: rgba(255, 208, 75, 0.1);
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon {
    transform: scale(1.3) rotate(5deg);
}

.menu-icon {
    transition: transform 0.3s ease;
}

.submenu-title {
    transition: all 0.3s ease;
}

.submenu-title:hover {
    background-color: rgba(255, 208, 75, 0.1);
}

.logo-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.pulse-effect {
    animation: pulse 0.5s ease-in-out;
}

.menu-expand {
    animation: menuExpand 0.3s ease-out forwards;
}

.menu-collapse {
    animation: menuCollapse 0.3s ease-in forwards;
}